package com.exam.dao;

import org.apache.ibatis.annotations.*;

import java.util.List;
import java.util.Map;

@Mapper
public interface AppManagerDao {

    @Delete("DELETE from t_app_user where imei = #{imei}")
    void deleteUserByIMEI(@Param("imei") String imei);

    @Insert("insert into t_app_user(appid, userid, channelid, requestid, imei) values (#{appid}, #{userId}, #{channelId}, #{requestId}, #{imei})")
    void saveUser(Map<String, String> map);

    @Select("select appid, userid, channelid, requestid, imei from t_app_user")
    List<Map<String, String>> getUserInfoList();
}
